<!doctype html>
{% extends "base.html" %}
{% block title %}主机设置{% endblock title %}

{% block page1_show %}show{% endblock page1_show %}
{% block page1.1_active %}active{% endblock page1.1_active %}

{% block main_content %}
<div class="row">
    <div class="col-md-12">
        <div class="card">
            <div class="card-header">
                <h5 class="card-title">主机设置</h5>
                <h6 class="card-subtitle text-muted">对部署到主机的应用进行相关设置</h6>
            </div>
            <div class="card-body">
                <form method="post" action="/hostsetting">
                    <div class="form-group row">
                        <label class="col-form-label col-sm-2 text-sm-right">软件源</label>
                        <div class="col-sm-10">
                            <input type="text" name="sourceURL" class="form-control" required="" placeholder="请填入完整网址" value="{{ setting.sourceURL }}">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-form-label col-sm-2 text-sm-right">临时文件目录位置</label>
                        <div class="col-sm-10">
                            <input type="text" name="TmpDir" class="form-control" required="" placeholder="请填入绝对路径" value="{{ setting.TmpDir }}">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-form-label col-sm-2 text-sm-right">统一安装目录位置</label>
                        <div class="col-sm-10">
                            <input type="text" name="InstallDir" class="form-control" required="" placeholder="请填入绝对路径" value="{{ setting.InstallDir }}">
                        </div>
                    </div>

                    <div class="form-group row align-content-center">
                        <label class="col-form-label col-sm-2 text-sm-center">部署的脚本(目前只有Shell)</label>
                        <div class="col-sm-3">
                            <select class="custom-select mb-3" name="ScriptType">
                                <option selected value="{{ setting.ScriptType }}">{{ setting.ScriptType }}</option>
                                <option value="Shell">只有shell</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-form-label col-sm-2 text-sm-right">执行脚本语句</label>
                        <div class="col-sm-10">
                            <input type="text" name="ScriptRun" class="form-control"  placeholder="代表脚本名，不输入则使用系统默认执行方式" value="{{ setting.ScriptRun }}">
                        </div>
                    </div>
                    
                    <div class="form-group row">
                        <div class="col-sm-10 ml-sm-auto">
                            <button type="submit" class="btn btn-primary">提 交</button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>
{% endblock main_content %}

{% block script %}
{% endblock script %}